package com.wsl.tibet_sprcifcation.service.impl;

import com.wsl.pojo.Tb_type_template;
import com.wsl.tibet_sprcifcation.dao.Tb_type_templateDao;
import com.wsl.service.Tb_type_templateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Tb_type_templateServiceimpl implements Tb_type_templateService {

    @Autowired
    private Tb_type_templateDao tb_type_templateDao;

    @Override
    public List<Tb_type_template> findalltypetem() {
        return tb_type_templateDao.selectList(null);
    }

    //先查询  再新增
    @Override
    public void intre(Tb_type_template tb_type_template) {
        final List<Tb_type_template> findalltypetem = findalltypetem();
        tb_type_templateDao.insert(tb_type_template);
    }


}
